#region Copyright RenGuiYou. All rights reserved.
//=====================================================
// PandoraFrameWork
// Author:      RenGuiyou
// Feedback: 	mailto:750539605@qq.com
//=====================================================
#endregion
using UnityEditor;
using UnityEngine;

namespace PandoraEditor.Window
{
    public class AccountConfigCategory : ConfigCategory
    {
        public override void OnInit()
        {
            name = "帐号设置";
        }

        public override void OnDrawAction()
        {
            AccountSetting setting = UserSetting.AccountSetting;
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("SVN", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.svn_username = EditorGUILayout.TextField("SVN帐号", setting.svn_username);
                EditorGUILayout.Space();
                setting.svn_password = EditorGUILayout.TextField("SVN密码", setting.svn_password);
            }
            GUILayout.EndVertical();
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("Git", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.git_username = EditorGUILayout.TextField("Git帐号", setting.git_username);
                EditorGUILayout.Space();
                setting.git_password = EditorGUILayout.TextField("Git密码", setting.git_password);
            }
            GUILayout.EndVertical();
        }
    }
}
